<template>
  <i aria-hidden="true">
    <svg :class="['svg-icon', className]">
      <use :xlink:href="`#icon-${svgName}`" :fill="`${color}`" />
    </svg>
  </i>
</template>

<script>
export default {
  name: 'SvgIcon',
  props: {
    svgName: {
      type: String,
      required: true
    },
    color: {
      type: String,
      required: false
    },
    className: {
      type: String
    }
  }
}
</script>

<style scoped>
.svg-icon {
  width: 68px;
  height: 68px;
  overflow: hidden;
  vertical-align: -3px;
  font-size: 68px;
  fill: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.electric-svg {
  width: 52px;
  height: 30px;
}

.toothbrush-svg {
  width: 280px;
  height: 280px;
}

.arrow-svg {
  width: 15px;
  height: 30px;
}

.arrow-left-svg {
  width: 17px;
  height: 32px;
}

.cancel-svg {
  width: 30px;
  height: 30px;
}

.arrow-svg-date {
  width: 15px;
  height: 30px;
  padding: 20px;
}

.setting-svg {
  width: 96px;
  height: 96px;
}

.circle-svg {
  width: 486px;
  height: 720px;
}

.tooth-one-svg {
  width: 244px;
  height: 328px;
}
</style>
